package com.Merlin.myapplication.adapter

import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView

// 数据类
data class PageData(val color: String, val text: String)

// 页面数据：颜色 + 文本
val pagesList = listOf(
    PageData("#FF5733", "首页"),
    PageData("#33FF57", "分类"),
    PageData("#3357FF", "消息"),
    PageData("#5733FF", "我的")
)

class ColorAdapter() : RecyclerView.Adapter<ColorAdapter.PageViewHolder>() {

    // 创建ViewHolder
    class PageViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {

    }

    override fun onCreateViewHolder(
        parent: ViewGroup,
        viewType: Int
    ): PageViewHolder {
        TODO("Not yet implemented")
    }

    override fun onBindViewHolder(
        holder: PageViewHolder,
        position: Int
    ) {
        TODO("Not yet implemented")
    }

    override fun getItemCount(): Int {
        TODO("Not yet implemented")
    }


}